package com.qiyang.api.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * Created on 2018/4/29.
 *
 * @author sehuaqi.
 * 描述：
 */
@Component
public class LogApiFeignHystrix implements LogFeignApi {

    Logger logger = LoggerFactory.getLogger(LogApiFeignHystrix.class);

    @Override
    public String printLog(String info) {

        logger.info("调用日志服务失败，服务降级");

        return "ERROR_CODE_LOG_FAILED";
    }
}
